<template>
  <div class="warp">
    <div class="content">
      <div class="minTitle">
        <div class="flag"></div>
        <div class="text">人员审核状态列表</div>
        <div class="close" @click="$router.go(-1)">
          <i class="el-icon-close"></i>
        </div>
      </div>
      <div class="top">
        <img src="../../assets/background_1.jpg" alt srcset class="avatar" />
        <span>姓名：XXX</span>
        <span>职称：XXX</span>
        <span>审核状态：XXXXXX</span>
      </div>
      <el-tabs type="border-card">
        <el-tab-pane label="未审批">
          <div class="infoList">
            <div class="infoList_left">
              <div>起止时间：2008-2-23———2020-03</div>
              <div>派遣单位：阿斯顿男孩的</div>
              <div>执行单位国家：中国</div>
              <div>任务类别：国际最高级</div>
              <div>附件：XXXXXXXX文件</div>
            </div>
            <div class="infoList_right">
              <div>
                <img src="../../assets/status/no.png" alt srcset />
              </div>
              <div class="infoList_right_icon">
                <img
                  src="../../assets/status/update.png"
                  alt
                  srcset
                  class="icon"
                  @click="updateInfo()"
                />
                <img
                  src="../../assets/status/delete.png"
                  alt
                  srcset
                  class="icon"
                  @click="updateInfo()"
                />
              </div>
            </div>
          </div>
        </el-tab-pane>
        <el-tab-pane label="待审批">
          <div class="infoList">
            <div class="infoList_left">
              <div>起止时间：2008-2-23———2020-03</div>
              <div>派遣单位：阿斯顿男孩的</div>
              <div>执行单位国家：中国</div>
              <div>任务类别：国际最高级</div>
              <div>附件：XXXXXXXX文件</div>
            </div>
            <div class="infoList_right">
              <div>
                <img src="../../assets/status/yes.png" alt srcset />
              </div>
            </div>
          </div>
        </el-tab-pane>
      </el-tabs>
    </div>

    <div class="aside-fr">
      <h6 class="moduleName">实际工作单位</h6>
      <div v-for="(item,i) in asideNav" :key="i">{{item.name}}</div>
    </div>
  </div>
</template>

<script>
import { infoProcessing } from "../../service/personalInfoDataProcessing";
import { findListByType } from "@/service/api";
export default {
  data() {
    return {
      dataList: [
        { id: "PeopleList", name: "待审批" },
        { id: "MatchingPeople", name: "已审批" }
      ],
      asideNav: [{ name: "全部" }]
    };
  },
  mounted() {
    this.getFindListByType();
  },
  methods: {
    getFindListByType() {
      // let params = { type: "1010002901" };
      // findListByType(params).then(res => {
      //   if (res.code == 200) {
      //     res.data.forEach(v => {
      //       this.asideNav.push(v);
      //     });
      //   } else {
      //     console.log(res);
      //   }
      // });

      this.$api.findListByType({ type: "1010002901" }).then(res => {
        if (res.code == 200) {
          res.data.forEach(v => {
            this.asideNav.push(v);
          });
        } else {
          console.log(res);
        }
      });
    },
    updateInfo() {
      this.$router.push({ path: "updateInfo" });
    }
  }
};
</script>

<style scoped>
.content {
  width: 82%;
  max-height: 520px;
  height: 100%;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 9px 8px 2px rgba(43, 103, 254, 0.05);
  border-radius: 5px;
  overflow: hidden;
  margin-right: 10px;
  position: relative;
}

.aside-fr {
  width: 18%;
  max-height: 850px;
  margin-left: 10px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0px 9px 8px 2px rgba(43, 103, 254, 0.05);
  border-radius: 5px;
  overflow-x: hidden;
  overflow-y: scroll;
  z-index: 1;
}
/*.aside-fr::-webkit-scrollbar {*/
/*width: 9px;  !* 横向滚动条宽度 *!*/
/*height: 9px; !* 竖向滚动条宽度 *!*/
/*background: rgba(0,0,0,.0);*/
/*border:none;*/
/*}*/
/*!* 滚动条 - 滚动块样式 *!*/
/*.aside-fr::-webkit-scrollbar-thumb {*/
/*background: rgba(0,0,0,.0);*/
/*border:none;*/
/*border-radius:4px*/
/*}*/
.aside-fr > div {
  height: 38px;
  line-height: 38px;
  text-align: center;
  color: #999999;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  font-size: 14px;
}
.aside-fr > div.active {
  background: #f5f8fd;
  color: #31478f;
  font-weight: bold;
  position: relative;
}
.aside-fr > div.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 38px;
  background: #31478f;
}
.refresh-bar {
  text-align: right;
}
.refresh-bar p {
  display: inline-block;
  width: 44px;
  background: rgba(234, 237, 244, 1);
  border: 1px solid rgba(142, 165, 241, 1);
  border-radius: 17px;
  text-align: center;
  padding: 1px 0px;
  font-size: 12px;
  color: rgba(47, 73, 160, 1);
  cursor: pointer;
  margin-right: 30px;
}
.content-table {
  min-height: 410px;
  border-radius: 5px 5px 0px 0px;
  overflow: hidden;
}

.content-table >>> .table-header th {
  background: #e6eaeb !important;
  border: none;
}
.content-table >>> .table-header th div {
  font-weight: bold !important;
  color: #333;
}

.content-table >>> tbody tr:nth-child(even) td {
  background: #f5f8fe;
}

.content-table >>> tbody .el-button {
  padding: 5px 15px;
}
.pagination {
  margin-top: 10px;
  text-align: end;
  padding-right: 16px;
}
.moduleName {
  background: #31478f;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: bold;
  padding: 11px 0px;
  text-align: center;
  color: white;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.warp {
  display: flex;
}

.avatar {
  width: 100px;
  height: 100px;
  vertical-align: middle;
}

.top {
  padding: 20px 30px;
  /* position: fixed;
    background-color: #ffffff;
    top: 50px;
    z-index: 1;
    width: 78.5%; */
}
.top span {
  font-size: 22px;
  margin-left: 50px;
}

.infoList {
  display: flex;
}

.infoList_right {
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
}

.infoList_right_icon {
  width: 300px;
  text-align: center;
}

.icon {
  margin-left: 20px;
}
.infoList_left {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 20px 0;
}
.infoList_left:nth-child(2n) {
  background-color: #fafafa;
}
.infoList_left div {
  width: 30%;
  margin: 20px 0;
}

.el-tabs--border-card {
  max-height: 660px;
  overflow-x: hidden;
  overflow-y: scroll;
}

.el-tabs--border-card > .el-tabs__content {
  padding: 0 !important;
}

.statusBtn {
  width: 120px;
  height: 120px;
  -moz-border-radius: 60px;
  -webkit-border-radius: 60px;
  border-radius: 50%;
  border: 1px solid #222222;
  padding: 30px 25px;
  position: relative;
  left: 50%;
}

.minTitle {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #31478f0d;
  padding: 14px 0px;
  border-top: solid 1px #f3f3f3;
  position: relative;
}
.minTitle > .flag {
  width: 3px;
  background: #31478f;
  margin: auto 22px;
  height: 18px;
}
.minTitle > .text {
  color: #31478f;
  font-weight: bold;
  font-size: 17px;
}

.close {
  position: absolute;
  right: 0px;
  padding: 0px 18px;
  cursor: pointer;
}
.close > i {
  font-size: 28px;
  font-weight: bold;
}
</style>